load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")

cc_library(
    name = "greet123",
    srcs = [
        "hello-greet.cc",
        "hello-greet2.cpp",
        ":not_one_package/common_dir/utils.cpp",
        ":not_one_package/utils.cpp",
    ],
    hdrs = [":to_include/hello-greet.h"],
    # 为包的使用者自动添加头文件路径
    includes = ["./to_include"],
)

cc_binary(
    name = "hello.exe",
    srcs = [
        "hello-world.cc",
    ],
    deps = [
        # 默认为当前文件夹
        # ":greet123",
        "//main:greet123",
    ],
)
